NTA UGC NET DEC-2022 Paper-2

Question 1
The negation of "Some students like hockey" is:
A
Some students dislike hockey
B
Every student dislike hockey
C
Every student like hockey
D
All students like hockey
Question 1 Explanation: 
Negation of like is dislike and negation of some one is all(every one)
So negation of some one likes hockey is every student dislikes hockey
Question 2
A relation 'R' is defined on ordered pairs of integers as:
(x,y)R(u,v) if x < u and y > v. Then R is
A
Neither a partial order nor an equivalence relation
B
A partial order but not a total order
C
A total order
D
An equivalence relation
Question 2 Explanation: 
A binary relation is an equivalence relation on a nonempty set S if and only if the relation is reflexive(R), symmetric(S) and transitive(T).
A binary relation is a partial order if and only if the relation is reflexive(R), antisymmetric(A) and transitive(T).
From the given relation, it is neither partial order nor equivalence relation.
Question 3
Suppose you are married and not you and your partner attend a party with three other married couples. Several handshakes took place. No one shook hands with himself (or herself0 or with their partner, and no one shook hands with the same person more than once. After all hand shaking was completed, suppose you asked each person, including your partner, how many hands they had shaken. Each person gave a different answer. How many hands did your spouse shake?
A
1
B
2
C
3
D
4
Question 4
Consider the following conditional code, which returns a Boolean values
if ((x>25) && (y>100))
return 'false';
else if((x<=25) && (y<=100)
return 'true';
else if((x>25) && (y<=100)
return 'false';
else
return 'true';

simplify it by filling in the following blank with a single Boolean expression without changing the behaviour of the conditional code.
if( ...........)
return 'true';
else
return 'false';
A
x>25
B
x<=25
C
y>100
D
y<=100
Question 4 Explanation: 
According to given conditions, if x value is < = 25 means it will return true and for other values it will return false.
Alone y<=100 won't return true, it should be along with x<=25
Question 5
Which one of the following types of memory is fastest?
A
Cache Memory
B
Register Memory
C
Main Memory
D
Secondary Memory
Question 5 Explanation: 
Registers are closest to the processor. Accumulator, Data Register, Programme Counter, General Purpose, and other register types are only a few examples.
Registers are smaller and faster than cache memory. If we count both the memory units on the memory hierarchy, then registers are on the top of the memory hierarchy.
Question 6
The memory size for n address lines and m data lines is given by
A
2m X n
B
m X n2
C
2n X m
D
n X m2
Question 6 Explanation: 
Memory size of n-address lines and m data line is 2^n X m
Question 7
Simplify the following using K-Map
F(A,B,C,D)= Σ(0,2,5,7,8,10,13,15)
A
BD + B'D'
B
AC + A'C'
C
BC + B'C'
D
AD + A'D'
Question 7 Explanation: 

Question 8
Consider an unpipelined machine with 10nsec clock cycles which uses four cycles for ALU operations and branches whereas five cycles for memory operation. Assume that the relative frequencies of those operations are: 40% , 20% and 40%, respectively. Due to clock skew and setup pipeline let us consider that the machine adds one nsec overhead to the clock. How much speedup is observed in the instruction execution rate when a pipelined machine is considered.
A
2 times
B
4 times
C
6 times
D
8 times
Question 9
Machine Level Language is a/an
A
Assembly Language
B
Low level language
C
High level Language
D
Translating Language
Question 9 Explanation: 
Machine language is another name for low-level language.
The machine language only uses the symbols 1 and 0.
Machine language instructions are all expressed as binary numbers (1s & 0s).
Machine language is immediately understandable by computers.
Question 10
Which of the following is wrong about the data types?
A
The number is always positive when qualifier 'unsigned' is used.
B
The number can be positive or negative when the qualifier 'signed' is used.
C
The range of values for signed data types is more than that of unsigned data types
D
The left most bit in unsigned data type is used to represent the value
Question 10 Explanation: 
Except statement-3 all statements are true
Question 11
If a constructor 'Date' is declared explicitly and has to be defined outside the class, which of the following is correct?
A
Date::Date(int dd) {/*...*/}
B
explicit Date::Date(int dd) {/*...*/}
C
Such a constructor cannot be defined
D
Constructor always has to be defined inside the class
Question 11 Explanation: 
Defining a Constructor Outside of the Class :Although the constructor can be defined outside of the class, it must be declared inside class. Use the scope resolution operator while defining a constructor outside of the class.
class class_name {
public:
class_name();
};

// Defining a Constructor Outside of the Class by using :: operator
class_name::class_name()
{
}
Question 12
Which one of the following allows the session to continue?
A
When a user quits a browser
B
When the user logs out and is invalidated by the servlet
C
When the session is timed out due to inactivity
D
When the user refreshes the browser and there is a persistent cookie
Question 12 Explanation: 
Except the last statement, in all remaining cases the session will be closed.
Question 13
Overfitting is expected when we observe that?
A
With training iterations error on training set as well as test set decreases
B
With training iterations error on training set decreases but test set increases
C
With training iterations error on training set as well as test set increases
D
With training iterations training set as well as test error remains constant
Question 14
Identify the incorrect statement(s).
A
A candidate key is minimal set of one or more attributes that, taken collectively, allows us to uniquely identify any entity in the entity set.
B
A candidate key for which no proper subset is also a candidate key is called a super key.
C
A super key is a set of one or more attributes that, taken collectively, allows us to uniquely identify any entity in the entity set.
D
A super key for which no proper subset is also a super key is called a candidate key.
Question 15
Consider the two relations below. The primary keys are underlined. Identify all possible foreign key(s) from the options based only on the two relations.
EMP (eid, ename, did)
DEPT (did, dname)
A
eid
B
did
C
eid, did
D
eid, did, ename
Question 16
Which of the following statement is correct, according to the following instance of the relational schema R(X,Y,Z)?
A
X → Y, Z → X
B
Y → Z, Z → X
C
X → Y, X → Z
D
Y → X, X → Z
Question 17
In Linux operating system, when ______ is invoked, it is passed a set of flags that determine how much sharing is to take place between the parent and child tasks.
A
fork()
B
clone()
C
pthread()
D
thread()
Question 18
The main function of the microkernel is to provide a communication facility between the _____ program and the various ______ that are also running in user space.
A
Virtual, Processes
B
System, Processes
C
Client, Services
D
Virtual, Services
Question 19
Consider an operating system capable of loading and executing a single sequential user process at a time. The disk head scheduling algorithm used is first come first served (FCFS). If FCFS is replaced by shortest seek time first (SSTF) and the vendor claims 50% better benchmark results. What is the expected improvement in the I/O performance of user programs?
A
50%
B
100%
C
25%
D
0%
Question 20
For the following set of processes scheduled using FCFS policy, determine the average waiting time. Assume that the processes arrived in the order P1, P2, P3, P4.
A
8
B
16
C
32
D
48
Question 21
Which of the following is not a Non functional requirement?
A
Portability
B
Security
C
Scalability
D
User interaction
Question 22
COCOMO Stands for____
A
Consumed cost model
B
Constructive cost model
C
Common control model
D
Composition cost model
Question 23
Modifying the software to match changes in the ever changing environment is called as
A
Adaptive maintenance
B
Corrective maintenance
C
Perfective maintenance
D
Preventive maintenance
Question 24
For a function of two variables, boundary value analysis yields,
A
4n+3 test cases
B
4n+1 test cases
C
n+4 test cases
D
2n+4 test cases
Question 25
How many different trees are possible with 'n' nodes?
A
n-1
B
2n -1
C
2n
D
2n -n
There are 25 questions to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access